/**
 *  fileName:testpromist
 *  time:2023/11/15
 *  todo:$END$
 */
let fn1 = () => {
  fn2().then(() =>{
    console.log('test')
  }).finally(() => {
    console.log('111')
  })
}

let fn2 = () => {
  // setTimeout(() => {
    let a =  new Promise((resolve, reject) => {
      setTimeout(() =>{

      resolve(1111111)
      },1000)
    })
  a.finally(() =>{
    return new Promise((resolve, reject) => {
      resolve(123123)
    })
  })
  // },1000)

}

fn1()
